<ul class="sidebar navbar-nav">
    {foreach $admin_menu as $key=>$menu }
    {if $key == $current_menu }
    <li class="nav-item active">
        <a class="nav-link" href="{$menu.url}">
            <i class="fas fa-fw {$menu.icon}"></i>
            <span>{$menu.name}</span>
        </a>
    </li>
    {else /}
    <li class="nav-item">
        <a class="nav-link" href="{$menu.url}">
            <i class="fas fa-fw {$menu.icon}"></i>
            <span>{$menu.name}</span>
        </a>
    </li>
    {/if}
    {/foreach}
</ul>